<script>
    var opensdk_list = <%-JSON.stringify(ret.opensdk)%>;
    var option = {
        colModel : [
            {label: '_id', name: '_id', width: 180,key:true, editable: false,sortable:true, hidden:true,resize:false,search:true,fixed:true},
            {label: 'openid', name: 'openid', width: 180,key:false, editable: true,sortable:true, resize:false,search:true,fixed:true},
            {label: '渠道', name: 'sdk',width: 200, editable: true, sortable:false,hidden:false,resize:true,fixed:true,search:true,
                formatter:'select', edittype:'select',
                editoptions:{value:opensdk_list},
                stype:"select",
                searchoptions:{value:opensdk_list}
            },
			{label: '查封时刻', name: 'time',width: 180, editable: false, sortable:false,hidden:false,resize:true,fixed:false,search:false,formatter:cosjs.jqgrid.timeFormat},
			{label: '备注', name: 'desc',width: 180, editable: true, sortable:false,hidden:false,resize:true,fixed:false,search:false},
			{label: '推送消息', name: 'msg',width: 180, editable: true, sortable:false,hidden:false,resize:true,fixed:false,search:false},
        ]
    }
    $(document).ready(function(){
        cosjs_create_jqgrid(option);
    });
</script>
